package leetcode.string;

import leetcode.string.common.StringUtils;

class Solution2287 {
    public int rearrangeCharacters(String s, String target) {
        return StringUtils.rearrangeCharacters(s, target);

    }
}

public class leetcode2287 {
    public static void main(String[] args) {
        Solution2287 solution2287 = new Solution2287();
        System.out.println(solution2287.rearrangeCharacters("ilovecodingonleetcode", "code"));
        System.out.println(solution2287.rearrangeCharacters("abcba", "abc"));
        System.out.println(solution2287.rearrangeCharacters("abbaccaddaeea", "aaaaa"));
        System.out.println(solution2287.rearrangeCharacters("abc", "abcd"));
    }
}
